<%@ include file="../res/inc/init.jsp" %>

<tiles:insert page="/general/template.jsp">
	<tiles:put name="title" value="Login"/>
	<tiles:put name="nav" value=""/>
	<tiles:put name="content" type="string">
		<h2>Welcome to the UC San Diego Graduate Admission System.</h2>
		
		Login with your account to apply or register <a href="<html:rewrite page="/general/registration.jsp"/>">here</a>.<br><br>
		
		<form name="loginForm" method="POST" action="j_security_check">
			<table>
				<tr><td>User name:</td><td><input name="j_username"></td>
					<td rowspan="2">&nbsp;<img src="<html:rewrite page="/res/img/key.png"/>"></td>
				</tr>
				<tr><td>Password:</td><td><input type="password" name="j_password"></td></tr>
				<tr><td colspan="2" align="right"><input type="submit" value="Login"></td></tr>
			</table>
		</form>
		
		<script type="text/javascript">
			document.loginForm.j_username.focus();
		</script>
		</tiles:put>
</tiles:insert>